const path = require('path');

module.exports = {
  entry: './src/index.js',
  mode: 'development', // production development
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'min.js',
    library: {
      type: 'module',
    },
  },
  devtool: 'source-map', 
  // source-map inline-source-map
  experiments: {
    outputModule: true,
  },
};